<div ng-controller="ItemCtrl" ng-init="commentsAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/item/comments">{{'评价'| translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/item/manualcomments" class="sui-btn btn-primary">+手工评价</a>
        </li>
        <span class="sui-form sui-form pull-right">
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'用户'|translate}}</th>
                <th>{{'回复的谁'|translate}}</th>
                <th>{{'评价商品'|translate}}</th>
                <th>{{'评论内容'|translate}}</th>
                <th>{{'审核'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in commentslist">
                <td>
                    <wxinfo ng-model="list.member_id" stye="1"></wxinfo>
                </td>
                <td>
                    <wxinfo ng-model="list.to_review" stye="1"></wxinfo>
                </td>
                <td>
                    <item-name item-id="list.item_id" sku-id="list.sku_id"></item-name>
                </td>
                <td>{{list.content}}</td>
                <td>
                    <button ng-show="list.check == 1" type="button" class="sui-btn btn-danger" ng-click="checkUpdate(list.comments_id,1)">审核</button>
                    <button ng-show="list.check == 2" type="button" class="sui-btn btn-success" ng-click="checkUpdate(list.comments_id,2)">已审核</button>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="{{pageNo}}" page-size="pageSize" total="commentsTotal" get-data="getItemCommentsList(pageNo)"></pager>
    <!-- 分页end -->
</div>